Repository navigation
refactor(screening): one rule for another list's rows, one look for rows still loading - #1615
Conversation
…ows still loading - Screen, Papers and the Screening list each kept their own copy of "is this another list than the one asked for", a state set during render and compared by hand. The paged-list hook now takes `list`, what makes another list rather than another page, search or order of the same, and says `isOther` while the rows up are of another list. The three copies are gone. A list not read (`"skip"`) lets go of its rows, so a tab asked for again shows skeletons rather than rows from before. - Rows still up while the next page, search or order loads were dimmed four ways across the app (fade only, fade and no clicks, with or without a transition). STALE_ROWS in list-controls is the one look: dimmed and out of reach of the pointer.
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars.
|
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 18bbb2427c
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
…ther list's too From the cross-family review of this PR: `isOther` looked only at the rows on screen, so it said nothing until a first page had arrived. Screen let a vote through on the paper still open from the queue before, when the queue changed before its first page came; the Screening list showed its pinned rows, not skeletons, when it left "Needs you" for a list not read yet. The hook now keeps the list whose rows are up, or were last (a list not read counts as shown), and says `isOther` from the moment another is asked for until its rows come. Screen holds its votes while `isOther` too.
- The discussion's queries worked out the person's standing and the screening's reviewers again for every paper of a page, and read each person they name one after another. They are worked out once (`readerOf`), and the people read together (`peopleIn`), the same in the thread, the list of all and saying something. - The sets a job reads and a screening's sources share five kinds, written out twice: written once now. - An English-only copy of `ago` beside the translated one in words.ts, and a type nothing reads, are gone.
… never animates and transitions at once From Codex's review of #1615: STALE_ROWS fades the list while the next page is read, and the list also ran fade-enter, which animates opacity. Firefox runs the two against each other and jumps as the entry ends.
Screen, Papers and the Screening list each kept their own copy of one rule: "is the list on screen another list than the one asked for". When it is, the page shows skeletons. When it's only another page, search or order of the same list, the rows stay up, dimmed. Each copy held state set during render and compared it by hand, and rounds 18 and 19 fixed each copy separately.
useCursorPageAt/useCursorPagetakelist: what makes another list rather than another page, search or order, such as a tab, a filter or a queue. While the rows up are of another list than the one asked for, the hook saysisOther. The three copies are gone:arrivedListand itsotherQueue/switchingarrivedListarrivedList"skip", the list's "Needs you" tab) lets go of the rows it showed. A tab asked for again shows skeletons, as the list's own copy did, never rows from before.STALE_ROWSinlist-controlsis the one look: dimmed, out of reach of the pointer, with a fade. It's used by:Checks:
tscandcheck:ui-rulespass.tests/componentsandlib/hooks: 322 tests pass.npm run verify -- shiftpasses, with no new layout shifts, flashes or errors against dev.openscholar.ai:/screeningwhile switching All, Needs you, In progress and Finished, in Chromium and Firefox